<template>
  我是商品{{productId}}详情页，暂未有设计图，敬请期待
</template>
<script setup lang="ts">
import { ref,onMounted } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter()

const productId = ref(1);
onMounted(() => {
  productId.value = Number(router.currentRoute.value.query.id);
  
});
</script>